package com.myjar.excel.serializer;

import org.apache.poi.ss.usermodel.Cell;

public class StringCodec implements ObjectSerializer<String>{
    public static final ObjectSerializer instance = new StringCodec();

    @Override
    public void write(Cell cell, String s) {
        cell.setCellValue(s);
    }

    @Override
    public String read(Cell cell) {
        return cell.getStringCellValue();
    }
}
